package com.mo.feignservice;

import com.mo.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("API-USERS")
public interface UserFeignService {
    @GetMapping("/user/selectByName")
    public List<User> selectByName(@RequestParam("name") String name);
    @GetMapping("/user/selectOne")
    public User selectOne(@RequestParam("id") Integer id);
}
